package com.ychs.dpmms.entity;

import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;

/**
 * copyright(c)2021 YYB.ALL rights Reserved
 * <p>
 * 描述:
 *
 * @author 原玉波
 * @version 1.0
 * @date 2021/9/5
 */
@Data
public class Capacity {
    /**
     * id
     */
    private int id;

    /**
     * 名称
     */
    @NotEmpty(message = "状态名称不能为空")
    @Size(min = 2,max = 10,message = "状态名称最短2位，最长10位")
    private String name;
}
